package com.qiuzhiyi.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.li.utils.TransformUtil;
import com.qiuzhiyi.R;
import com.qiuzhiyi.item.FeeHistoryItem;

/**
 * Author: Li
 * Date: 2018/4/11 0011
 * Description:
 */

public class FeeHistoryAdapter extends BaseQuickAdapter<FeeHistoryItem, BaseViewHolder> {
    public FeeHistoryAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, FeeHistoryItem item) {
        helper.setText(R.id.txt_des, item.getPName());
        helper.setText(R.id.txt_date, TransformUtil.timeFormat(item.getCreateTime(),"yyyy-MM-dd\nHH:mm:ss"));
    }
}
